"""we URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from . import views

urlpatterns = [
    # 首页  
    url(r'^$',views.index,name='home_index'),
    # 列表
    url(r'^list/$',views.goodslist,name='home_list'),
    # 详情
    url(r'^info/$',views.goodsinfo,name='home_info'),
    # 登录
    url(r'^login/$',views.login,name='home_login'),
    # 退出
    url(r'^logout/$',views.logout,name='home_logout'),
    # 注册
    url(r'^register/$',views.register,name='home_register'),
    # 验证手机
    url(r'^checkphone/$',views.checkphone,name='home_checkphone'),
    # 发送验证码
    url(r'sendmsg/$',views.sendmsg,name='home_sendmsg'),

    # 购物车添加
    url(r'^cart/add/$',views.cartadd,name='home_cartadd'),
    # 购物车的列表
    url(r'^cart/index/$',views.cartindex,name='home_cartindex'),
    # 修改购物车数量
    url(r'^cart/edit/$',views.cartedit,name='home_cartedit'),
    # 删除购物车商品
    url(r'^cart/del/$',views.cartdel,name='home_cartdel'),

     # 城市联动
    url(r'^get/citys/$',views.getcitys,name="home_getcitys"),
    # 添加收货地址
    url(r'^address/add$',views.addressadd,name="home_addressadd"),
    # 获取收货地址
    url(r'^address/list$',views.addresslist,name="home_addresslist"),

    # 订单确认
    url(r'^order/confirm/$',views.orderconfirm,name="home_orderconfirm"),
    # 新建订单
    url(r'^order/create/$',views.ordercreate,name="home_ordercreate"),
    # 支付
    url(r'^order/buy/$',views.orderbuy,name="home_orderbuy"),

    # 我的订单
    url(r'^order/info/$',views.orderinfo,name="home_orderinfo"),
    # 默认地址
    url(r'^addr/moren/$',views.addrmoren,name="home_addrmoren"),
    # 删除地址
    url(r'^addr/dzsc/$',views.dzsc,name="home_dzsc"),
    # 地址管理
    url(r'^addr/dzgl/$',views.dzgl,name="home_dzgl"),
    # 用户管理
    url(r'^yhgl/$',views.yhgl,name="home_yhgl"),




]
